Linux Shell 批量更改文件名

find -name "*.txt" |for i in *;do mv $i `echo $i |sed 's/_[0-9]*_[0-9]*_encode.pdf/.pdf/g'`;done